package com.code;

public class AnimalTest_2 {
	public static void main(String[] args) {
		Person p = new Person();
		p.setName("张三");
		p.num = 123;
		System.out.println(p.getName());
		System.out.println(p.num);
		Pig z = new Pig();
		z.setName("猪");
		z.num = 789;
		System.out.println(z.getName());
		System.out.println(z.num);
		System.out.println(Animal.num);
	}

}
